"""
:mod:`colours` - add custom colour scales
=========================================

.. module:: colours
    :synopsis: Create customised colour maps that are more palatable and/or
                suitable for plotting data. To access the additional colour
                maps, simply import this module, then call
                pyplot.get_cmap(<new_cmap_name>) to get the new colour map.
                See the matplotlib examples pages for more details:
                http://matplotlib.org/examples/pylab_examples/custom_cmap.html

.. moduleauthor:: Craig Arthur <craig.arthur@ga.gov.au>

"""

import matplotlib.pyplot as pyplot
from matplotlib.colors import LinearSegmentedColormap

# Blue through white to red cmap:
CDICT0 = {'red':((0.0, 0.0, 0.0),
                 (0.475, 1.0, 1.0),
                 (0.525, 1.0, 1.0),
                 (1.0, 0.9, 0.9)),
          'green':((0.0, 0.0, 0.0),
                   (0.475, 1.0, 1.0),
                   (0.525, 1.0, 1.0),
                   (1.0, 0.0, 0.0)),
          'blue':((0.0, 0.9, 0.9),
                  (0.475, 1.0, 1.0),
                  (0.525, 1.0, 1.0),
                  (1.0, 0.0, 0.0))}
# White through red cmap:
CDICT1 = {'red':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 1.0, 1.0), (1.0, 0.8, 0.8)),
          'green':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0)),
          'blue':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0))}
# White through green cmap:
CDICT2 = {'red':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0)),
          'green':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 1.0, 1.0), (1.0, 0.8, 0.8)),
          'blue':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0))}
# White through blue cmap:
CDICT3 = {'red':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0)),
          'green':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 0.5, 0.5), (1.0, 0.0, 0.0)),
          'blue':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.75, 1.0, 1.0), (1.0, 0.8, 0.8))}
# White through orange cmap:
CDICT4 = {'red':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.6, 1.0, 1.0), (1.0, 0.9, 0.9)),
          'green':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.6, 0.5, 0.5), (1.0, 0.65, 0.65)),
          'blue':((0.0, 0.0, 1.0), (0.1, 1.0, 1.0), (0.6, 0.5, 0.5), (1.0, 0.0, 0.0))}

# Modified GIST-NCAR:
CDICT5 = {'blue':
          [(0.0, 1.0, 1.0), (0.0050505050458014011, 1.0, 1.0),
           (0.010101010091602802, 0.40392157435417175, 0.40392157435417175),
           (0.015151515603065491, 0.35686275362968445, 0.35686275362968445),
           (0.020202020183205605, 0.30980393290519714, 0.30980393290519714),
           (0.025252524763345718, 0.25882354378700256, 0.25882354378700256),
           (0.030303031206130981, 0.21176470816135406, 0.21176470816135406),
           (0.035353533923625946, 0.16470588743686676, 0.16470588743686676),
           (0.040404040366411209, 0.11764705926179886, 0.11764705926179886),
           (0.045454546809196472, 0.070588238537311554, 0.070588238537311554),
           (0.050505049526691437, 0.019607843831181526, 0.019607843831181526),
           (0.0555555559694767, 0.047058824449777603, 0.047058824449777603),
           (0.060606062412261963, 0.14509804546833038, 0.14509804546833038),
           (0.065656565129756927, 0.23921568691730499, 0.23921568691730499),
           (0.070707067847251892, 0.3333333432674408, 0.3333333432674408),
           (0.075757578015327454, 0.43137255311012268, 0.43137255311012268),
           (0.080808080732822418, 0.52549022436141968, 0.52549022436141968),
           (0.085858583450317383, 0.61960786581039429, 0.61960786581039429),
           (0.090909093618392944, 0.71764707565307617, 0.71764707565307617),
           (0.095959596335887909, 0.81176471710205078, 0.81176471710205078),
           (0.10101009905338287, 0.90588235855102539, 0.90588235855102539),
           (0.10606060922145844, 1.0, 1.0),
           (0.1111111119389534, 1.0, 1.0),
           (0.11616161465644836, 1.0, 1.0),
           (0.12121212482452393, 1.0, 1.0),
           (0.12626262009143829, 1.0, 1.0),
           (0.13131313025951385, 1.0, 1.0),
           (0.13636364042758942, 1.0, 1.0),
           (0.14141413569450378, 1.0, 1.0),
           (0.14646464586257935, 1.0, 1.0),
           (0.15151515603065491, 1.0, 1.0), (0.15656565129756927, 1.0, 1.0),
           (0.16161616146564484, 1.0, 1.0), (0.1666666716337204, 1.0, 1.0),
           (0.17171716690063477, 1.0, 1.0), (0.17676767706871033, 1.0, 1.0),
           (0.18181818723678589, 1.0, 1.0), (0.18686868250370026, 1.0, 1.0),
           (0.19191919267177582, 1.0, 1.0), (0.19696970283985138, 1.0, 1.0),
           (0.20202019810676575, 1.0, 1.0), (0.20707070827484131, 1.0, 1.0),
           (0.21212121844291687, 0.99215686321258545, 0.99215686321258545),
           (0.21717171370983124, 0.95686274766921997, 0.95686274766921997),
           (0.2222222238779068, 0.91764706373214722, 0.91764706373214722),
           (0.22727273404598236, 0.88235294818878174, 0.88235294818878174),
           (0.23232322931289673, 0.84313726425170898, 0.84313726425170898),
           (0.23737373948097229, 0.80392158031463623, 0.80392158031463623),
           (0.24242424964904785, 0.76862746477127075, 0.76862746477127075),
           (0.24747474491596222, 0.729411780834198, 0.729411780834198),
           (0.25252524018287659, 0.69019609689712524, 0.69019609689712524),
           (0.25757575035095215, 0.65490198135375977, 0.65490198135375977),
           (0.26262626051902771, 0.61568629741668701, 0.61568629741668701),
           (0.26767677068710327, 0.56470590829849243, 0.56470590829849243),
           (0.27272728085517883, 0.50980395078659058, 0.50980395078659058),
           (0.27777779102325439, 0.45098039507865906, 0.45098039507865906),
           (0.28282827138900757, 0.39215686917304993, 0.39215686917304993),
           (0.28787878155708313, 0.3333333432674408, 0.3333333432674408),
           (0.29292929172515869, 0.27843138575553894, 0.27843138575553894),
           (0.29797980189323425, 0.21960784494876862, 0.21960784494876862),
           (0.30303031206130981, 0.16078431904315948, 0.16078431904315948),
           (0.30808082222938538, 0.10588235408067703, 0.10588235408067703),
           (0.31313130259513855, 0.047058824449777603, 0.047058824449777603),
           (0.31818181276321411, 0.0, 0.0),
           (0.32323232293128967, 0.0, 0.0),
           (0.32828283309936523, 0.0, 0.0),
           (0.3333333432674408, 0.0, 0.0),
           (0.33838382363319397, 0.0, 0.0),
           (0.34343433380126953, 0.0, 0.0),
           (0.34848484396934509, 0.0, 0.0),
           (0.35353535413742065, 0.0, 0.0),
           (0.35858586430549622, 0.0, 0.0),
           (0.36363637447357178, 0.0, 0.0),
           (0.36868685483932495, 0.0, 0.0),
           (0.37373736500740051, 0.0, 0.0),
           (0.37878787517547607, 0.0, 0.0),
           (0.38383838534355164, 0.0, 0.0),
           (0.3888888955116272, 0.0, 0.0),
           (0.39393940567970276, 0.0, 0.0),
           (0.39898988604545593, 0.0, 0.0),
           (0.40404039621353149, 0.0, 0.0),
           (0.40909090638160706, 0.0, 0.0),
           (0.41414141654968262, 0.0, 0.0),
           (0.41919192671775818, 0.0, 0.0),
           (0.42424243688583374, 0.0039215688593685627, 0.0039215688593685627),
           (0.42929291725158691, 0.027450980618596077, 0.027450980618596077),
           (0.43434342741966248, 0.050980392843484879, 0.050980392843484879),
           (0.43939393758773804, 0.074509806931018829, 0.074509806931018829),
           (0.4444444477558136, 0.094117648899555206, 0.094117648899555206),
           (0.44949495792388916, 0.11764705926179886, 0.11764705926179886),
           (0.45454546809196472, 0.14117647707462311, 0.14117647707462311),
           (0.4595959484577179, 0.16470588743686676, 0.16470588743686676),
           (0.46464645862579346, 0.18823529779911041, 0.18823529779911041),
           (0.46969696879386902, 0.21176470816135406, 0.21176470816135406),
           (0.47474747896194458, 0.23529411852359772, 0.23529411852359772),
           (0.47979798913002014, 0.22352941334247589, 0.22352941334247589),
           (0.4848484992980957, 0.20000000298023224, 0.20000000298023224),
           (0.48989897966384888, 0.17647059261798859, 0.17647059261798859),
           (0.49494948983192444, 0.15294118225574493, 0.15294118225574493),
           (0.5, 0.12941177189350128, 0.12941177189350128),
           (0.50505048036575317, 0.10980392247438431, 0.10980392247438431),
           (0.51010102033615112, 0.086274512112140656, 0.086274512112140656),
           (0.5151515007019043, 0.062745101749897003, 0.062745101749897003),
           (0.52020204067230225, 0.039215687662363052, 0.039215687662363052),
           (0.52525252103805542, 0.015686275437474251, 0.015686275437474251),
           (0.53030300140380859, 0.0, 0.0),
           (0.53535354137420654, 0.0, 0.0), (0.54040402173995972, 0.0, 0.0),
           (0.54545456171035767, 0.0, 0.0), (0.55050504207611084, 0.0, 0.0),
           (0.55555558204650879, 0.0, 0.0), (0.56060606241226196, 0.0, 0.0),
           (0.56565654277801514, 0.0, 0.0), (0.57070708274841309, 0.0, 0.0),
           (0.57575756311416626, 0.0, 0.0), (0.58080810308456421, 0.0, 0.0),
           (0.58585858345031738, 0.0039215688593685627, 0.0039215688593685627),
           (0.59090906381607056, 0.0078431377187371254, 0.0078431377187371254),
           (0.59595960378646851, 0.011764706112444401, 0.011764706112444401),
           (0.60101008415222168, 0.019607843831181526, 0.019607843831181526),
           (0.60606062412261963, 0.023529412224888802, 0.023529412224888802),
           (0.6111111044883728, 0.031372550874948502, 0.031372550874948502),
           (0.61616164445877075, 0.035294119268655777, 0.035294119268655777),
           (0.62121212482452393, 0.043137256056070328, 0.043137256056070328),
           (0.6262626051902771, 0.047058824449777603, 0.047058824449777603),
           (0.63131314516067505, 0.054901961237192154, 0.054901961237192154),
           (0.63636362552642822, 0.054901961237192154, 0.054901961237192154),
           (0.64141416549682617, 0.050980392843484879, 0.050980392843484879),
           (0.64646464586257935, 0.043137256056070328, 0.043137256056070328),
           (0.65151512622833252, 0.039215687662363052, 0.039215687662363052),
           (0.65656566619873047, 0.031372550874948502, 0.031372550874948502),
           (0.66161614656448364, 0.027450980618596077, 0.027450980618596077),
           (0.66666668653488159, 0.019607843831181526, 0.019607843831181526),
           (0.67171716690063477, 0.015686275437474251, 0.015686275437474251),
           (0.67676764726638794, 0.011764706112444401, 0.011764706112444401),
           (0.68181818723678589, 0.0039215688593685627, 0.0039215688593685627),
           (0.68686866760253906, 0.0, 0.0),
           (0.69191920757293701, 0.0, 0.0),
           (0.69696968793869019, 0.0, 0.0),
           (0.70202022790908813, 0.0, 0.0),
           (0.70707070827484131, 0.0, 0.0),
           (0.71212118864059448, 0.0, 0.0),
           (0.71717172861099243, 0.0, 0.0),
           (0.72222220897674561, 0.0, 0.0),
           (0.72727274894714355, 0.0, 0.0),
           (0.73232322931289673, 0.0, 0.0),
           (0.7373737096786499, 0.0, 0.0),
           (0.74242424964904785, 0.031372550874948502, 0.031372550874948502),
           (0.74747473001480103, 0.12941177189350128, 0.12941177189350128),
           (0.75252526998519897, 0.22352941334247589, 0.22352941334247589),
           (0.75757575035095215, 0.32156863808631897, 0.32156863808631897),
           (0.7626262903213501, 0.41568627953529358, 0.41568627953529358),
           (0.76767677068710327, 0.50980395078659058, 0.50980395078659058),
           (0.77272725105285645, 0.60784316062927246, 0.60784316062927246),
           (0.77777779102325439, 0.70196080207824707, 0.70196080207824707),
           (0.78282827138900757, 0.79607844352722168, 0.79607844352722168),
           (0.78787881135940552, 0.89411765336990356, 0.89411765336990356),
           (0.79292929172515869, 0.98823529481887817, 0.98823529481887817),
           (0.79797977209091187, 1.0, 1.0),
           (0.80303031206130981, 1.0, 1.0),
           (0.80808079242706299, 1.0, 1.0),
           (0.81313133239746094, 1.0, 1.0),
           (0.81818181276321411, 1.0, 1.0),
           (0.82323235273361206, 1.0, 1.0),
           (0.82828283309936523, 1.0, 1.0),
           (0.83333331346511841, 1.0, 1.0),
           (0.83838385343551636, 1.0, 1.0),
           (0.84343433380126953, 1.0, 1.0),
           (0.84848487377166748, 0.99607843160629272, 0.99607843160629272),
           (0.85353535413742065, 0.98823529481887817, 0.98823529481887817),
           (0.85858583450317383, 0.9843137264251709, 0.9843137264251709),
           (0.86363637447357178, 0.97647058963775635, 0.97647058963775635),
           (0.86868685483932495, 0.9686274528503418, 0.9686274528503418),
           (0.8737373948097229, 0.96470588445663452, 0.96470588445663452),
           (0.87878787517547607, 0.95686274766921997, 0.95686274766921997),
           (0.88383835554122925, 0.94901961088180542, 0.94901961088180542),
           (0.8888888955116272, 0.94509804248809814, 0.94509804248809814),
           (0.89393937587738037, 0.93725490570068359, 0.93725490570068359),
           (0.89898991584777832, 0.93333333730697632, 0.93333333730697632),
           (0.90404039621353149, 0.93333333730697632, 0.93333333730697632),
           (0.90909093618392944, 0.93725490570068359, 0.93725490570068359),
           (0.91414141654968262, 0.93725490570068359, 0.93725490570068359),
           (0.91919189691543579, 0.94117647409439087, 0.94117647409439087),
           (0.92424243688583374, 0.94509804248809814, 0.94509804248809814),
           (0.92929291725158691, 0.94509804248809814, 0.94509804248809814),
           (0.93434345722198486, 0.94901961088180542, 0.94901961088180542),
           (0.93939393758773804, 0.9529411792755127, 0.9529411792755127),
           (0.94444441795349121, 0.9529411792755127, 0.9529411792755127),
           (0.94949495792388916, 0.95686274766921997, 0.95686274766921997),
           (0.95454543828964233, 0.96078431606292725, 0.96078431606292725),
           (0.95959597826004028, 0.96470588445663452, 0.96470588445663452),
           (0.96464645862579346, 0.9686274528503418, 0.9686274528503418),
           (0.96969699859619141, 0.97254902124404907, 0.97254902124404907),
           (0.97474747896194458, 0.97647058963775635, 0.97647058963775635),
           (0.97979795932769775, 0.98039215803146362, 0.98039215803146362),
           (0.9848484992980957, 0.9843137264251709, 0.9843137264251709),
           (0.98989897966384888, 0.98823529481887817, 0.98823529481887817),
           (0.99494951963424683, 0.99215686321258545, 0.99215686321258545),
           (1.0, 0.99607843160629272, 0.99607843160629272)],
          'green': [
              (0.0, 1.0, 1.0),
              (0.0050505050458014011, 1.0, 1.0),
              (0.010101010091602802, 0.074509806931018829, 0.074509806931018829),
              (0.015151515603065491, 0.10980392247438431, 0.10980392247438431),
              (0.020202020183205605, 0.14901961386203766, 0.14901961386203766),
              (0.025252524763345718, 0.18431372940540314, 0.18431372940540314),
              (0.030303031206130981, 0.22352941334247589, 0.22352941334247589),
              (0.035353533923625946, 0.25882354378700256, 0.25882354378700256),
              (0.040404040366411209, 0.29803922772407532, 0.29803922772407532),
              (0.045454546809196472, 0.3333333432674408, 0.3333333432674408),
              (0.050505049526691437, 0.37254902720451355, 0.37254902720451355),
              (0.0555555559694767, 0.36862745881080627, 0.36862745881080627),
              (0.060606062412261963, 0.3333333432674408, 0.3333333432674408),
              (0.065656565129756927, 0.29411765933036804, 0.29411765933036804),
              (0.070707067847251892, 0.25882354378700256, 0.25882354378700256),
              (0.075757578015327454, 0.21960784494876862, 0.21960784494876862),
              (0.080808080732822418, 0.18431372940540314, 0.18431372940540314),
              (0.085858583450317383, 0.14509804546833038, 0.14509804546833038),
              (0.090909093618392944, 0.10980392247438431, 0.10980392247438431),
              (0.095959596335887909, 0.070588238537311554, 0.070588238537311554),
              (0.10101009905338287, 0.035294119268655777, 0.035294119268655777),
              (0.10606060922145844, 0.0, 0.0),
              (0.1111111119389534, 0.074509806931018829, 0.074509806931018829),
              (0.11616161465644836, 0.14509804546833038, 0.14509804546833038),
              (0.12121212482452393, 0.21568627655506134, 0.21568627655506134),
              (0.12626262009143829, 0.28627452254295349, 0.28627452254295349),
              (0.13131313025951385, 0.36078432202339172, 0.36078432202339172),
              (0.13636364042758942, 0.43137255311012268, 0.43137255311012268),
              (0.14141413569450378, 0.50196081399917603, 0.50196081399917603),
              (0.14646464586257935, 0.57254904508590698, 0.57254904508590698),
              (0.15151515603065491, 0.64705884456634521, 0.64705884456634521),
              (0.15656565129756927, 0.71764707565307617, 0.71764707565307617),
              (0.16161616146564484, 0.7607843279838562, 0.7607843279838562),
              (0.1666666716337204, 0.78431373834609985, 0.78431373834609985),
              (0.17171716690063477, 0.80784314870834351, 0.80784314870834351),
              (0.17676767706871033, 0.83137255907058716, 0.83137255907058716),
              (0.18181818723678589, 0.85490196943283081, 0.85490196943283081),
              (0.18686868250370026, 0.88235294818878174, 0.88235294818878174),
              (0.19191919267177582, 0.90588235855102539, 0.90588235855102539),
              (0.19696970283985138, 0.92941176891326904, 0.92941176891326904),
              (0.20202019810676575, 0.9529411792755127, 0.9529411792755127),
              (0.20707070827484131, 0.97647058963775635, 0.97647058963775635),
              (0.21212121844291687, 0.99607843160629272, 0.99607843160629272),
              (0.21717171370983124, 0.99607843160629272, 0.99607843160629272),
              (0.2222222238779068, 0.99215686321258545, 0.99215686321258545),
              (0.22727273404598236, 0.99215686321258545, 0.99215686321258545),
              (0.23232322931289673, 0.99215686321258545, 0.99215686321258545),
              (0.23737373948097229, 0.98823529481887817, 0.98823529481887817),
              (0.24242424964904785, 0.98823529481887817, 0.98823529481887817),
              (0.24747474491596222, 0.9843137264251709, 0.9843137264251709),
              (0.25252524018287659, 0.9843137264251709, 0.9843137264251709),
              (0.25757575035095215, 0.98039215803146362, 0.98039215803146362),
              (0.26262626051902771, 0.98039215803146362, 0.98039215803146362),
              (0.26767677068710327, 0.98039215803146362, 0.98039215803146362),
              (0.27272728085517883, 0.98039215803146362, 0.98039215803146362),
              (0.27777779102325439, 0.9843137264251709, 0.9843137264251709),
              (0.28282827138900757, 0.9843137264251709, 0.9843137264251709),
              (0.28787878155708313, 0.98823529481887817, 0.98823529481887817),
              (0.29292929172515869, 0.98823529481887817, 0.98823529481887817),
              (0.29797980189323425, 0.99215686321258545, 0.99215686321258545),
              (0.30303031206130981, 0.99215686321258545, 0.99215686321258545),
              (0.30808082222938538, 0.99607843160629272, 0.99607843160629272),
              (0.31313130259513855, 0.99607843160629272, 0.99607843160629272),
              (0.31818181276321411, 0.99607843160629272, 0.99607843160629272),
              (0.32323232293128967, 0.97647058963775635, 0.97647058963775635),
              (0.32828283309936523, 0.95686274766921997, 0.95686274766921997),
              (0.3333333432674408, 0.93725490570068359, 0.93725490570068359),
              (0.33838382363319397, 0.92156863212585449, 0.92156863212585449),
              (0.34343433380126953, 0.90196079015731812, 0.90196079015731812),
              (0.34848484396934509, 0.88235294818878174, 0.88235294818878174),
              (0.35353535413742065, 0.86274510622024536, 0.86274510622024536),
              (0.35858586430549622, 0.84705883264541626, 0.84705883264541626),
              (0.36363637447357178, 0.82745099067687988, 0.82745099067687988),
              (0.36868685483932495, 0.80784314870834351, 0.80784314870834351),
              (0.37373736500740051, 0.81568628549575806, 0.81568628549575806),
              (0.37878787517547607, 0.83529412746429443, 0.83529412746429443),
              (0.38383838534355164, 0.85098040103912354, 0.85098040103912354),
              (0.3888888955116272, 0.87058824300765991, 0.87058824300765991),
              (0.39393940567970276, 0.89019608497619629, 0.89019608497619629),
              (0.39898988604545593, 0.90980392694473267, 0.90980392694473267),
              (0.40404039621353149, 0.92549020051956177, 0.92549020051956177),
              (0.40909090638160706, 0.94509804248809814, 0.94509804248809814),
              (0.41414141654968262, 0.96470588445663452, 0.96470588445663452),
              (0.41919192671775818, 0.9843137264251709, 0.9843137264251709),
              (0.42424243688583374, 1.0, 1.0),
              (0.42929291725158691, 1.0, 1.0),
              (0.43434342741966248, 1.0, 1.0),
              (0.43939393758773804, 1.0, 1.0),
              (0.4444444477558136, 1.0, 1.0),
              (0.44949495792388916, 1.0, 1.0),
              (0.45454546809196472, 1.0, 1.0),
              (0.4595959484577179, 1.0, 1.0),
              (0.46464645862579346, 1.0, 1.0),
              (0.46969696879386902, 1.0, 1.0),
              (0.47474747896194458, 1.0, 1.0),
              (0.47979798913002014, 1.0, 1.0),
              (0.4848484992980957, 1.0, 1.0),
              (0.48989897966384888, 1.0, 1.0),
              (0.49494948983192444, 1.0, 1.0),
              (0.5, 1.0, 1.0),
              (0.50505048036575317, 1.0, 1.0),
              (0.51010102033615112, 1.0, 1.0),
              (0.5151515007019043, 1.0, 1.0),
              (0.52020204067230225, 1.0, 1.0),
              (0.52525252103805542, 1.0, 1.0),
              (0.53030300140380859, 0.99215686321258545, 0.99215686321258545),
              (0.53535354137420654, 0.98039215803146362, 0.98039215803146362),
              (0.54040402173995972, 0.96470588445663452, 0.96470588445663452),
              (0.54545456171035767, 0.94901961088180542, 0.94901961088180542),
              (0.55050504207611084, 0.93333333730697632, 0.93333333730697632),
              (0.55555558204650879, 0.91764706373214722, 0.91764706373214722),
              (0.56060606241226196, 0.90588235855102539, 0.90588235855102539),
              (0.56565654277801514, 0.89019608497619629, 0.89019608497619629),
              (0.57070708274841309, 0.87450981140136719, 0.87450981140136719),
              (0.57575756311416626, 0.85882353782653809, 0.85882353782653809),
              (0.58080810308456421, 0.84313726425170898, 0.84313726425170898),
              (0.58585858345031738, 0.83137255907058716, 0.83137255907058716),
              (0.59090906381607056, 0.81960785388946533, 0.81960785388946533),
              (0.59595960378646851, 0.81176471710205078, 0.81176471710205078),
              (0.60101008415222168, 0.80000001192092896, 0.80000001192092896),
              (0.60606062412261963, 0.78823530673980713, 0.78823530673980713),
              (0.6111111044883728, 0.7764706015586853, 0.7764706015586853),
              (0.61616164445877075, 0.76470589637756348, 0.76470589637756348),
              (0.62121212482452393, 0.75294119119644165, 0.75294119119644165),
              (0.6262626051902771, 0.74117648601531982, 0.74117648601531982),
              (0.63131314516067505, 0.729411780834198, 0.729411780834198),
              (0.63636362552642822, 0.70980393886566162, 0.70980393886566162),
              (0.64141416549682617, 0.66666668653488159, 0.66666668653488159),
              (0.64646464586257935, 0.62352943420410156, 0.62352943420410156),
              (0.65151512622833252, 0.58039218187332153, 0.58039218187332153),
              (0.65656566619873047, 0.5372549295425415, 0.5372549295425415),
              (0.66161614656448364, 0.49411764740943909, 0.49411764740943909),
              (0.66666668653488159, 0.45098039507865906, 0.45098039507865906),
              (0.67171716690063477, 0.40392157435417175, 0.40392157435417175),
              (0.67676764726638794, 0.36078432202339172, 0.36078432202339172),
              (0.68181818723678589, 0.31764706969261169, 0.31764706969261169),
              (0.68686866760253906, 0.27450981736183167, 0.27450981736183167),
              (0.69191920757293701, 0.24705882370471954, 0.24705882370471954),
              (0.69696968793869019, 0.21960784494876862, 0.21960784494876862),
              (0.70202022790908813, 0.19607843458652496, 0.19607843458652496),
              (0.70707070827484131, 0.16862745583057404, 0.16862745583057404),
              (0.71212118864059448, 0.14509804546833038, 0.14509804546833038),
              (0.71717172861099243, 0.11764705926179886, 0.11764705926179886),
              (0.72222220897674561, 0.090196080505847931, 0.090196080505847931),
              (0.72727274894714355, 0.066666670143604279, 0.066666670143604279),
              (0.73232322931289673, 0.039215687662363052, 0.039215687662363052),
              (0.7373737096786499, 0.015686275437474251, 0.015686275437474251),
              (0.74242424964904785, 0.0, 0.0),
              (0.74747473001480103, 0.0, 0.0),
              (0.75252526998519897, 0.0, 0.0),
              (0.75757575035095215, 0.0, 0.0),
              (0.7626262903213501, 0.0, 0.0),
              (0.76767677068710327, 0.0, 0.0),
              (0.77272725105285645, 0.0, 0.0),
              (0.77777779102325439, 0.0, 0.0),
              (0.78282827138900757, 0.0, 0.0),
              (0.78787881135940552, 0.0, 0.0),
              (0.79292929172515869, 0.0, 0.0),
              (0.79797977209091187, 0.015686275437474251, 0.015686275437474251),
              (0.80303031206130981, 0.031372550874948502, 0.031372550874948502),
              (0.80808079242706299, 0.050980392843484879, 0.050980392843484879),
              (0.81313133239746094, 0.066666670143604279, 0.066666670143604279),
              (0.81818181276321411, 0.086274512112140656, 0.086274512112140656),
              (0.82323235273361206, 0.10588235408067703, 0.10588235408067703),
              (0.82828283309936523, 0.12156862765550613, 0.12156862765550613),
              (0.83333331346511841, 0.14117647707462311, 0.14117647707462311),
              (0.83838385343551636, 0.15686275064945221, 0.15686275064945221),
              (0.84343433380126953, 0.17647059261798859, 0.17647059261798859),
              (0.84848487377166748, 0.20000000298023224, 0.20000000298023224),
              (0.85353535413742065, 0.23137255012989044, 0.23137255012989044),
              (0.85858583450317383, 0.25882354378700256, 0.25882354378700256),
              (0.86363637447357178, 0.29019609093666077, 0.29019609093666077),
              (0.86868685483932495, 0.32156863808631897, 0.32156863808631897),
              (0.8737373948097229, 0.35294118523597717, 0.35294118523597717),
              (0.87878787517547607, 0.38431373238563538, 0.38431373238563538),
              (0.88383835554122925, 0.41568627953529358, 0.41568627953529358),
              (0.8888888955116272, 0.44313725829124451, 0.44313725829124451),
              (0.89393937587738037, 0.47450980544090271, 0.47450980544090271),
              (0.89898991584777832, 0.5058823823928833, 0.5058823823928833),
              (0.90404039621353149, 0.52941179275512695, 0.52941179275512695),
              (0.90909093618392944, 0.55294120311737061, 0.55294120311737061),
              (0.91414141654968262, 0.57254904508590698, 0.57254904508590698),
              (0.91919189691543579, 0.59607845544815063, 0.59607845544815063),
              (0.92424243688583374, 0.61960786581039429, 0.61960786581039429),
              (0.92929291725158691, 0.64313727617263794, 0.64313727617263794),
              (0.93434345722198486, 0.66274511814117432, 0.66274511814117432),
              (0.93939393758773804, 0.68627452850341797, 0.68627452850341797),
              (0.94444441795349121, 0.70980393886566162, 0.70980393886566162),
              (0.94949495792388916, 0.729411780834198, 0.729411780834198),
              (0.95454543828964233, 0.75294119119644165, 0.75294119119644165),
              (0.95959597826004028, 0.78039216995239258, 0.78039216995239258),
              (0.96464645862579346, 0.80392158031463623, 0.80392158031463623),
              (0.96969699859619141, 0.82745099067687988, 0.82745099067687988),
              (0.97474747896194458, 0.85098040103912354, 0.85098040103912354),
              (0.97979795932769775, 0.87450981140136719, 0.87450981140136719),
              (0.9848484992980957, 0.90196079015731812, 0.90196079015731812),
              (0.98989897966384888, 0.92549020051956177, 0.92549020051956177),
              (0.99494951963424683, 0.94901961088180542, 0.94901961088180542),
              (1.0, 0.97254902124404907, 0.97254902124404907)],
          'red': [
              (0.0, 1.0, 1.0),
              (0.0050505050458014011, 1.0, 1.0),
              (0.010101010091602802, 0.0, 0.0),
              (0.015151515603065491, 0.0, 0.0),
              (0.020202020183205605, 0.0, 0.0),
              (0.025252524763345718, 0.0, 0.0),
              (0.030303031206130981, 0.0, 0.0),
              (0.035353533923625946, 0.0, 0.0),
              (0.040404040366411209, 0.0, 0.0),
              (0.045454546809196472, 0.0, 0.0),
              (0.050505049526691437, 0.0, 0.0),
              (0.0555555559694767, 0.0, 0.0),
              (0.060606062412261963, 0.0, 0.0),
              (0.065656565129756927, 0.0, 0.0),
              (0.070707067847251892, 0.0, 0.0),
              (0.075757578015327454, 0.0, 0.0),
              (0.080808080732822418, 0.0, 0.0),
              (0.085858583450317383, 0.0, 0.0),
              (0.090909093618392944, 0.0, 0.0),
              (0.095959596335887909, 0.0, 0.0),
              (0.10101009905338287, 0.0, 0.0),
              (0.10606060922145844, 0.0, 0.0),
              (0.1111111119389534, 0.0, 0.0),
              (0.11616161465644836, 0.0, 0.0),
              (0.12121212482452393, 0.0, 0.0),
              (0.12626262009143829, 0.0, 0.0),
              (0.13131313025951385, 0.0, 0.0),
              (0.13636364042758942, 0.0, 0.0),
              (0.14141413569450378, 0.0, 0.0),
              (0.14646464586257935, 0.0, 0.0),
              (0.15151515603065491, 0.0, 0.0),
              (0.15656565129756927, 0.0, 0.0),
              (0.16161616146564484, 0.0, 0.0),
              (0.1666666716337204, 0.0, 0.0),
              (0.17171716690063477, 0.0, 0.0),
              (0.17676767706871033, 0.0, 0.0),
              (0.18181818723678589, 0.0, 0.0),
              (0.18686868250370026, 0.0, 0.0),
              (0.19191919267177582, 0.0, 0.0),
              (0.19696970283985138, 0.0, 0.0),
              (0.20202019810676575, 0.0, 0.0),
              (0.20707070827484131, 0.0, 0.0),
              (0.21212121844291687, 0.0, 0.0),
              (0.21717171370983124, 0.0, 0.0),
              (0.2222222238779068, 0.0, 0.0),
              (0.22727273404598236, 0.0, 0.0),
              (0.23232322931289673, 0.0, 0.0),
              (0.23737373948097229, 0.0, 0.0),
              (0.24242424964904785, 0.0, 0.0),
              (0.24747474491596222, 0.0, 0.0),
              (0.25252524018287659, 0.0, 0.0),
              (0.25757575035095215, 0.0, 0.0),
              (0.26262626051902771, 0.0, 0.0),
              (0.26767677068710327, 0.0, 0.0),
              (0.27272728085517883, 0.0, 0.0),
              (0.27777779102325439, 0.0, 0.0),
              (0.28282827138900757, 0.0, 0.0),
              (0.28787878155708313, 0.0, 0.0),
              (0.29292929172515869, 0.0, 0.0),
              (0.29797980189323425, 0.0, 0.0),
              (0.30303031206130981, 0.0, 0.0),
              (0.30808082222938538, 0.0, 0.0),
              (0.31313130259513855, 0.0, 0.0),
              (0.31818181276321411, 0.0039215688593685627, 0.0039215688593685627),
              (0.32323232293128967, 0.043137256056070328, 0.043137256056070328),
              (0.32828283309936523, 0.08235294371843338, 0.08235294371843338),
              (0.3333333432674408, 0.11764705926179886, 0.11764705926179886),
              (0.33838382363319397, 0.15686275064945221, 0.15686275064945221),
              (0.34343433380126953, 0.19607843458652496, 0.19607843458652496),
              (0.34848484396934509, 0.23137255012989044, 0.23137255012989044),
              (0.35353535413742065, 0.27058824896812439, 0.27058824896812439),
              (0.35858586430549622, 0.30980393290519714, 0.30980393290519714),
              (0.36363637447357178, 0.3490196168422699, 0.3490196168422699),
              (0.36868685483932495, 0.38431373238563538, 0.38431373238563538),
              (0.37373736500740051, 0.40392157435417175, 0.40392157435417175),
              (0.37878787517547607, 0.41568627953529358, 0.41568627953529358),
              (0.38383838534355164, 0.42352941632270813, 0.42352941632270813),
              (0.3888888955116272, 0.43137255311012268, 0.43137255311012268),
              (0.39393940567970276, 0.44313725829124451, 0.44313725829124451),
              (0.39898988604545593, 0.45098039507865906, 0.45098039507865906),
              (0.40404039621353149, 0.45882353186607361, 0.45882353186607361),
              (0.40909090638160706, 0.47058823704719543, 0.47058823704719543),
              (0.41414141654968262, 0.47843137383460999, 0.47843137383460999),
              (0.41919192671775818, 0.49019607901573181, 0.49019607901573181),
              (0.42424243688583374, 0.50196081399917603, 0.50196081399917603),
              (0.42929291725158691, 0.52549022436141968, 0.52549022436141968),
              (0.43434342741966248, 0.54901963472366333, 0.54901963472366333),
              (0.43939393758773804, 0.57254904508590698, 0.57254904508590698),
              (0.4444444477558136, 0.60000002384185791, 0.60000002384185791),
              (0.44949495792388916, 0.62352943420410156, 0.62352943420410156),
              (0.45454546809196472, 0.64705884456634521, 0.64705884456634521),
              (0.4595959484577179, 0.67058825492858887, 0.67058825492858887),
              (0.46464645862579346, 0.69411766529083252, 0.69411766529083252),
              (0.46969696879386902, 0.72156864404678345, 0.72156864404678345),
              (0.47474747896194458, 0.7450980544090271, 0.7450980544090271),
              (0.47979798913002014, 0.76862746477127075, 0.76862746477127075),
              (0.4848484992980957, 0.7921568751335144, 0.7921568751335144),
              (0.48989897966384888, 0.81568628549575806, 0.81568628549575806),
              (0.49494948983192444, 0.83921569585800171, 0.83921569585800171),
              (0.5, 0.86274510622024536, 0.86274510622024536),
              (0.50505048036575317, 0.88627451658248901, 0.88627451658248901),
              (0.51010102033615112, 0.90980392694473267, 0.90980392694473267),
              (0.5151515007019043, 0.93333333730697632, 0.93333333730697632),
              (0.52020204067230225, 0.95686274766921997, 0.95686274766921997),
              (0.52525252103805542, 0.98039215803146362, 0.98039215803146362),
              (0.53030300140380859, 1.0, 1.0),
              (0.53535354137420654, 1.0, 1.0),
              (0.54040402173995972, 1.0, 1.0),
              (0.54545456171035767, 1.0, 1.0),
              (0.55050504207611084, 1.0, 1.0),
              (0.55555558204650879, 1.0, 1.0),
              (0.56060606241226196, 1.0, 1.0),
              (0.56565654277801514, 1.0, 1.0),
              (0.57070708274841309, 1.0, 1.0),
              (0.57575756311416626, 1.0, 1.0),
              (0.58080810308456421, 1.0, 1.0),
              (0.58585858345031738, 1.0, 1.0),
              (0.59090906381607056, 1.0, 1.0),
              (0.59595960378646851, 1.0, 1.0),
              (0.60101008415222168, 1.0, 1.0),
              (0.60606062412261963, 1.0, 1.0),
              (0.6111111044883728, 1.0, 1.0),
              (0.61616164445877075, 1.0, 1.0),
              (0.62121212482452393, 1.0, 1.0),
              (0.6262626051902771, 1.0, 1.0),
              (0.63131314516067505, 1.0, 1.0),
              (0.63636362552642822, 1.0, 1.0),
              (0.64141416549682617, 1.0, 1.0),
              (0.64646464586257935, 1.0, 1.0),
              (0.65151512622833252, 1.0, 1.0),
              (0.65656566619873047, 1.0, 1.0),
              (0.66161614656448364, 1.0, 1.0),
              (0.66666668653488159, 1.0, 1.0),
              (0.67171716690063477, 1.0, 1.0),
              (0.67676764726638794, 1.0, 1.0),
              (0.68181818723678589, 1.0, 1.0),
              (0.68686866760253906, 1.0, 1.0),
              (0.69191920757293701, 1.0, 1.0),
              (0.69696968793869019, 1.0, 1.0),
              (0.70202022790908813, 1.0, 1.0),
              (0.70707070827484131, 1.0, 1.0),
              (0.71212118864059448, 1.0, 1.0),
              (0.71717172861099243, 1.0, 1.0),
              (0.72222220897674561, 1.0, 1.0),
              (0.72727274894714355, 1.0, 1.0),
              (0.73232322931289673, 1.0, 1.0),
              (0.7373737096786499, 1.0, 1.0),
              (0.74242424964904785, 1.0, 1.0),
              (0.74747473001480103, 1.0, 1.0),
              (0.75252526998519897, 1.0, 1.0),
              (0.75757575035095215, 1.0, 1.0),
              (0.7626262903213501, 1.0, 1.0),
              (0.76767677068710327, 1.0, 1.0),
              (0.77272725105285645, 1.0, 1.0),
              (0.77777779102325439, 1.0, 1.0),
              (0.78282827138900757, 1.0, 1.0),
              (0.78787881135940552, 1.0, 1.0),
              (0.79292929172515869, 1.0, 1.0),
              (0.79797977209091187, 0.96470588445663452, 0.96470588445663452),
              (0.80303031206130981, 0.92549020051956177, 0.92549020051956177),
              (0.80808079242706299, 0.89019608497619629, 0.89019608497619629),
              (0.81313133239746094, 0.85098040103912354, 0.85098040103912354),
              (0.81818181276321411, 0.81568628549575806, 0.81568628549575806),
              (0.82323235273361206, 0.7764706015586853, 0.7764706015586853),
              (0.82828283309936523, 0.74117648601531982, 0.74117648601531982),
              (0.83333331346511841, 0.70196080207824707, 0.70196080207824707),
              (0.83838385343551636, 0.66666668653488159, 0.66666668653488159),
              (0.84343433380126953, 0.62745100259780884, 0.62745100259780884),
              (0.84848487377166748, 0.61960786581039429, 0.61960786581039429),
              (0.85353535413742065, 0.65098041296005249, 0.65098041296005249),
              (0.85858583450317383, 0.68235296010971069, 0.68235296010971069),
              (0.86363637447357178, 0.7137255072593689, 0.7137255072593689),
              (0.86868685483932495, 0.7450980544090271, 0.7450980544090271),
              (0.8737373948097229, 0.77254903316497803, 0.77254903316497803),
              (0.87878787517547607, 0.80392158031463623, 0.80392158031463623),
              (0.88383835554122925, 0.83529412746429443, 0.83529412746429443),
              (0.8888888955116272, 0.86666667461395264, 0.86666667461395264),
              (0.89393937587738037, 0.89803922176361084, 0.89803922176361084),
              (0.89898991584777832, 0.92941176891326904, 0.92941176891326904),
              (0.90404039621353149, 0.93333333730697632, 0.93333333730697632),
              (0.90909093618392944, 0.93725490570068359, 0.93725490570068359),
              (0.91414141654968262, 0.93725490570068359, 0.93725490570068359),
              (0.91919189691543579, 0.94117647409439087, 0.94117647409439087),
              (0.92424243688583374, 0.94509804248809814, 0.94509804248809814),
              (0.92929291725158691, 0.94509804248809814, 0.94509804248809814),
              (0.93434345722198486, 0.94901961088180542, 0.94901961088180542),
              (0.93939393758773804, 0.9529411792755127, 0.9529411792755127),
              (0.94444441795349121, 0.9529411792755127, 0.9529411792755127),
              (0.94949495792388916, 0.95686274766921997, 0.95686274766921997),
              (0.95454543828964233, 0.96078431606292725, 0.96078431606292725),
              (0.95959597826004028, 0.96470588445663452, 0.96470588445663452),
              (0.96464645862579346, 0.9686274528503418, 0.9686274528503418),
              (0.96969699859619141, 0.97254902124404907, 0.97254902124404907),
              (0.97474747896194458, 0.97647058963775635, 0.97647058963775635),
              (0.97979795932769775, 0.98039215803146362, 0.98039215803146362),
              (0.9848484992980957, 0.9843137264251709, 0.9843137264251709),
              (0.98989897966384888, 0.98823529481887817, 0.98823529481887817),
              (0.99494951963424683, 0.99215686321258545, 0.99215686321258545),
              (1.0, 0.99607843160629272, 0.99607843160629272)]}

# White through GEMD red (PMS484) cmap:
CDICT6 = {'red':((0.0, 0.0, 1.0), (1.0, 0.53125, 0.53125)),
          'green':((0.0, 0.0, 1.0), (1.0, 0.125, 0.125)),
          'blue':((0.0, 0.0, 1.0), (1.0, 0.359375, 0.359375))}

# White through GEMD green (PMS328) cmap:
CDICT7 = {'red':((0.0, 0.0, 1.0), (1.0, 0.0, 0.0)),
          'green':((0.0, 0.0, 1.0), (1.0, 0.3945, 0.3945)),
          'blue':((0.0, 0.0, 1.0), (1.0, 0.359375, 0.359375))}
# White through GEMD blue (PMS315) cmap:
CDICT8 = {'red':((0.0, 0.0, 1.0), (1.0, 0.0, 0.0)),
          'green':((0.0, 0.0, 1.0), (1.0, 0.296875, 0.296875)),
          'blue':((0.0, 0.0, 1.0), (1.0, 0.390625, 0.390625))}
# White through GEMD orange (PMS145) cmap:
CDICT9 = {'red':((0.0, 0.0, 1.0), (1.0, 0.73046875, 0.73046875)),
          'green':((0.0, 0.0, 1.0), (1.0, 0.39453125, 0.39453125)),
          'blue':((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))}
# GEMD Blue through white to GEMD Orange
CDICT10 = {'red':((0.0, 0.0, 0.0), (0.4875, 1.0, 1.0),
                  (0.5125, 1.0, 1.0), (1.0, 0.73046875, 0.73046875)),
           'green':((0.0, 0.296875, 0.296875), (0.4875, 1.0, 1.0),
                    (0.5125, 1.0, 1.0), (1.0, 0.39453125, 0.39453125)),
           'blue':((0.0, 0.390625, 0.390625), (0.4875, 1.0, 1.0),
                   (0.5125, 1.0, 1.0), (1.0, 0.0, 0.0))}
# PCCSP winds:
CDICT11 = {'red':((0.000, 0.37254902, 0.37254902),
                  (0.025, 0.431372549, 0.431372549),
                  (0.075, 0.490196078, 0.490196078),
                  (0.125, 0.545098039, 0.545098039),
                  (0.175, 0.603921569, 0.603921569),
                  (0.225, 0.658823529, 0.658823529),
                  (0.275, 0.717647059, 0.717647059),
                  (0.325, 0.77254902, 0.77254902),
                  (0.375, 0.831372549, 0.831372549),
                  (0.425, 0.88627451, 0.88627451),
                  (0.475, 0.870588235, 0.870588235),
                  (0.525, 0.984313725, 0.984313725),
                  (0.575, 0.976470588, 0.976470588),
                  (0.625, 0.968627451, 0.968627451),
                  (0.675, 0.960784314, 0.960784314),
                  (0.725, 0.949019608, 0.949019608),
                  (0.775, 0.941176471, 0.941176471),
                  (0.825, 0.933333333, 0.933333333),
                  (0.875, 0.925490196, 0.925490196),
                  (0.925, 0.917647059, 0.917647059),
                  (0.975, 0.905882353, 0.905882353),
                  (1.000, 0.905882353, 0.905882353)),
           'green':((0.000, 0.22745098, 0.22745098),
                    (0.025, 0.298039216, 0.298039216),
                    (0.075, 0.368627451, 0.36862745),
                    (0.125, 0.439215686, 0.439215686),
                    (0.175, 0.509803922, 0.509803922),
                    (0.225, 0.580392157, 0.580392157),
                    (0.275, 0.650980392, 0.650980392),
                    (0.325, 0.721568627, 0.721568627),
                    (0.375, 0.792156863, 0.792156863),
                    (0.425, 0.862745098, 0.862745098),
                    (0.475, 0.870588235, 0.870588235),
                    (0.525, 0.905882353, 0.905882353),
                    (0.575, 0.858823529, 0.858823529),
                    (0.625, 0.807843137, 0.807843137),
                    (0.675, 0.760784314, 0.760784314),
                    (0.725, 0.71372549, 0.71372549),
                    (0.775, 0.666666667, 0.666666667),
                    (0.825, 0.615686275, 0.615686275),
                    (0.875, 0.568627451, 0.568627451),
                    (0.925, 0.521568627, 0.521568627),
                    (0.975, 0.470588235, 0.470588235),
                    (1.000, 0.470588235, 0.470588235)),
           'blue':((0.000, 0.454901961, 0.454901961),
                   (0.025, 0.505882353, 0.505882353),
                   (0.075, 0.556862745, 0.556862745),
                   (0.125, 0.603921569, 0.603921569),
                   (0.175, 0.654901961, 0.654901961),
                   (0.225, 0.705882353, 0.705882353),
                   (0.275, 0.752941176, 0.752941176),
                   (0.325, 0.803921569, 0.803921569),
                   (0.375, 0.854901961, 0.854901961),
                   (0.425, 0.901960784, 0.901960784),
                   (0.475, 0.870588235, 0.870588235),
                   (0.525, 0.866666667, 0.866666667),
                   (0.575, 0.80000, 0.80000),
                   (0.625, 0.733333333, 0.733333333),
                   (0.675, 0.666666667, 0.666666667),
                   (0.725, 0.60000, 0.60000),
                   (0.775, 0.533333333, 0.533333333),
                   (0.825, 0.466666667, 0.466666667),
                   (0.875, 0.40000, 0.40000),
                   (0.925, 0.333333333, 0.333333333),
                   (0.975, 0.266666667, 0.266666667),
                   (1.000, 0.266666667, 0.266666667))}
#PCCSP2
CDICT12 = {'red':((0.000, 0.6862745, 0.6862745),
                  (0.050, 0.8549020, 0.8549020),
                  (0.100, 0.8549020, 0.8549020),
                  (0.150, 0.8549020, 0.8549020),
                  (0.200, 0.8823529, 0.8823529),
                  (0.250, 0.9058824, 0.9058824),
                  (0.300, 0.9529412, 0.9529412),
                  (0.350, 1.0000000, 1.0000000),
                  (0.400, 0.8352941, 0.8352941),
                  (0.450, 0.6705882, 0.6705882),
                  (0.500, 0.5803922, 0.5803922),
                  (0.550, 0.5568627, 0.5568627),
                  (0.600, 0.5333333, 0.5333333),
                  (0.650, 0.1294118, 0.1294118),
                  (0.700, 0.2509804, 0.2509804),
                  (0.750, 0.3725490, 0.3725490),
                  (0.800, 0.4627451, 0.4627451),
                  (0.850, 0.5686275, 0.5686275),
                  (0.900, 0.5882353, 0.5882353),
                  (0.950, 0.5921569, 0.5921569),
                  (1.000, 0.5921569, 0.5921569)),
           'green':((0.000, 0.1450980, 0.1450980),
                    (0.050, 0.1450980, 0.1450980),
                    (0.100, 0.2745098, 0.2745098),
                    (0.150, 0.4039216, 0.4039216),
                    (0.200, 0.4980392, 0.4980392),
                    (0.250, 0.5921569, 0.5921569),
                    (0.300, 0.7764706, 0.7764706),
                    (0.350, 0.9607843, 0.9607843),
                    (0.400, 0.8941176, 0.8941176),
                    (0.450, 0.8274510, 0.8274510),
                    (0.500, 0.7960784, 0.7960784),
                    (0.550, 0.7960784, 0.7960784),
                    (0.600, 0.7921569, 0.7921569),
                    (0.650, 0.2745098, 0.2745098),
                    (0.700, 0.2509804, 0.2509804),
                    (0.750, 0.2274510, 0.2274510),
                    (0.800, 0.3137255, 0.3137255),
                    (0.850, 0.4078431, 0.4078431),
                    (0.900, 0.3411765, 0.3411765),
                    (0.950, 0.2705882, 0.2705882),
                    (1.000, 0.2705882, 0.2705882)),
           'blue':((0.000, 0.1098039, 0.1098039),
                   (0.050, 0.1137255, 0.1137255),
                   (0.100, 0.1725490, 0.1725490),
                   (0.150, 0.2313725, 0.2313725),
                   (0.200, 0.1960784, 0.1960784),
                   (0.250, 0.1568627, 0.1568627),
                   (0.300, 0.0784314, 0.0784314),
                   (0.350, 0.0000000, 0.0000000),
                   (0.400, 0.0117647, 0.0117647),
                   (0.450, 0.0196078, 0.0196078),
                   (0.500, 0.3568627, 0.3568627),
                   (0.550, 0.5921569, 0.5921569),
                   (0.600, 0.8235294, 0.8235294),
                   (0.650, 0.5058824, 0.5058824),
                   (0.700, 0.4823529, 0.4823529),
                   (0.750, 0.4549020, 0.4549020),
                   (0.800, 0.5372549, 0.5372549),
                   (0.850, 0.6313725, 0.6313725),
                   (0.900, 0.5490196, 0.5490196),
                   (0.950, 0.4705882, 0.4705882),
                   (1.000, 0.4705882, 0.4705882))}

# Modified jet:
CDICT13 = {'red': ((0., 1, 1), (0.125, 0, 0), (0.35, 0, 0),
                   (0.66, 1, 1), (0.89, 1, 1), (1, 0.5, 0.5)),
           'green': ((0., 1, 1), (0.125, 0, 0), (0.125, 0, 0),
                     (0.375, 1, 1), (0.64, 1, 1), (0.91, 0, 0), (1, 0, 0)),
           'blue': ((0., 1, 1), (0.125, 1, 1), (0.34, 1, 1), (0.65, 0, 0),
                    (1, 0, 0))}

# If you create an additional colourmap, give it a name and add it to
# this dictionary:
CMAPDICT = {'rwbcmap':CDICT0,
            'wrcmap':CDICT1,
            'wgcmap':CDICT2,
            'wbcmap':CDICT3,
            'wocmap':CDICT4,
            'gistmod':CDICT5,
            'gared':CDICT6,
            'gagreen':CDICT7,
            'gablue':CDICT8,
            'gaorange':CDICT9,
            'gabluegreen':CDICT10,
            'pccspwind':CDICT11,
            'pccspvar':CDICT12,
            'jet':CDICT13}

for k, v in CMAPDICT.items():
    cmap = LinearSegmentedColormap(k, v)
    pyplot.register_cmap(cmap=cmap)
